Distinguish between device model dying during startup (libxl__spawn_check
returns failure) and timing out while waiting for the xenstore node to show up.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
if ( starting ) {
rc = libxl__spawn_check(gc, starting->for_spawn);
if ( rc ) {
+ LIBXL__LOG(ctx, LIBXL__LOG_ERROR,
+ "Device Model died during startup");
rc = -1;
goto err_died;
}
}
}
}
+ LIBXL__LOG(ctx, LIBXL__LOG_ERROR, "Device Model not ready");
err_died:
xs_unwatch(xsh, path, path);
xs_daemon_close(xsh);
- LIBXL__LOG(ctx, LIBXL__LOG_ERROR, "Device Model not ready");
err:
return -1;
}